package org.xxx.epms.gateway.feign;

import lombok.Getter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.xxx.epms.gateway.dto.InspectorDetailsDto;
import org.xxx.epms.gateway.feign.handler.InspectorFeignHandler;

@FeignClient(value = "epms-inspector",fallback = InspectorFeignHandler.class)
@Component
public interface InspectorFeign {
    @GetMapping("/inspector/getInsDetails")
    InspectorDetailsDto getInsDetails(@RequestParam("insId")Integer insId);
}
